package it.cpyx.appengine.server.data;

import java.util.Date;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.users.User;

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class UserData {

	@PrimaryKey
	@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private User user;//unique ...@gmail.com ...
	
//	@Persistent
//	private String username;
//	
//	@Persistent
//	private String password;
	
	@Persistent
	private String ip;
	
	@Persistent
	private Set<Long> reputation;
	
	@Persistent
	private Set<Long> badges;
	
	@Persistent
	private Date lastEntry;
	
	@Persistent
	private Set<Long> userTextDataList;
	
	@Persistent
	private Set<Long> followedLabelDataList;
	
	@Persistent
	private Set<Long> friendsDataList;

	
}
